<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html> 
	<head>
		<title>Register</title>
		<logic:notPresent name="back">
        	<link href="login.css" rel="stylesheet" type="text/css">
        </logic:notPresent>
        <logic:present name="back">
        	<link href="form/login.css" rel="stylesheet" type="text/css">
        </logic:present>
	</head>
	<body>
		<logic:notPresent name="years" scope="session">
           	<logic:redirect forward="illegal_access"></logic:redirect>
		</logic:notPresent>
		<div class="container">
			<div class="header">
				<html:img page="/yssz.jpg"/>
			</div>
			<div class="content">
				<h1>Register</h1>
				<p>
					<html:form action="/register">
						name : <html:text property="name"/><html:errors property="name"/><br/>
						password : <html:password property="password"/><html:errors property="password"/><br/>
						commit : <html:password property="commit"/><html:errors property="commit"/><br/>
						birthday : <html:select property="year">
							<html:options collection="years" property="number" labelProperty="number"/>
						</html:select><html:errors property="year"/>/
						<html:select property="month">
							<html:option value="1">1</html:option>
							<html:option value="2">2</html:option>
							<html:option value="3">3</html:option>
							<html:option value="4">4</html:option>
							<html:option value="5">5</html:option>
							<html:option value="6">6</html:option>
							<html:option value="7">7</html:option>
							<html:option value="8">8</html:option>
							<html:option value="9">9</html:option>
							<html:option value="10">10</html:option>
							<html:option value="11">11</html:option>
							<html:option value="12">12</html:option>
						</html:select><html:errors property="month"/>/
						<html:select property="day">
							<html:option value="1">1</html:option>
							<html:option value="2">2</html:option>
							<html:option value="3">3</html:option>
							<html:option value="4">4</html:option>
							<html:option value="5">5</html:option>
							<html:option value="6">6</html:option>
							<html:option value="7">7</html:option>
							<html:option value="8">8</html:option>
							<html:option value="9">9</html:option>
							<html:option value="10">10</html:option>
							<html:option value="11">11</html:option>
							<html:option value="12">12</html:option>
							<html:option value="13">13</html:option>
							<html:option value="14">14</html:option>
							<html:option value="15">15</html:option>
							<html:option value="16">16</html:option>
							<html:option value="17">17</html:option>
							<html:option value="18">18</html:option>
							<html:option value="19">19</html:option>
							<html:option value="20">20</html:option>
							<html:option value="21">21</html:option>
							<html:option value="22">22</html:option>
							<html:option value="23">23</html:option>
							<html:option value="24">24</html:option>
							<html:option value="25">25</html:option>
							<html:option value="26">26</html:option>
							<html:option value="27">27</html:option>
							<html:option value="28">28</html:option>
							<html:option value="29">29</html:option>
							<html:option value="30">30</html:option>
							<html:option value="31">31</html:option>
						</html:select><html:errors property="day"/><br/>
						email : <html:text property="email"/><html:errors property="email"/><br/>
						role : <html:select property="role">
							<html:option value="False">patient</html:option>
							<html:option value="True">doctor</html:option>
						</html:select><html:errors property="role"/><br/>
						<html:submit/><html:cancel/>
					</html:form>
				</p>
			</div>
			<div class="footer">
				<p>copyright@yssz</p>
			</div>
		</div>
	</body>
</html>